<form id="teachingForm">
    <input name="id" type="hidden" th:value="${teaching?.id}">
    <div class="form-group row">
        <label for="d-pname" class="col-sm-2 col-form-label">课程名称:</label>
        <div class="col-sm-10">
            <select name="courseId" id="d-pname" th:with="type=${@dict.getCourseList()}" class="form-control m-b" required>
                <option th:each="dict : ${type}" th:text="${dict.key}" th:value="${dict.value}"
                         ></option>
                <!--th:field="*{teaching.courseId}"-->
            </select>

        </div>
    </div>
    
    <div class="form-group row">
        <label for="teacherId" class="col-sm-2 col-form-label">老师</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.teacherId}" name="teacherId" class="form-control"
                   id="teacherId"
                   placeholder="填写推荐老师" required>
            <div class="invalid-feedback">请填推荐老师</div>
        </div>
    </div>

    <div class="form-group row">
        <label for="coursePlanId" class="col-sm-2 col-form-label">课程安排计划</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.coursePlanId}" name="coursePlanId" class="form-control"
                   id="coursePlanId"
                   placeholder="填写课程安排计划" required>
            <div class="invalid-feedback">请填课程安排计划</div>
        </div>
    </div>


    <div class="form-group row">
        <label for="studentName" class="col-sm-2 col-form-label">学生名字</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.studentName}" name="studentName" class="form-control"
                   id="studentName"
                   placeholder="填写学生名字" required>
            <div class="invalid-feedback">请填学生名字</div>
        </div>
    </div>

    <div class="form-group row">
        <label for="idCard" class="col-sm-2 col-form-label">身份证号</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.idCard}" name="idCard" class="form-control"
                   id="idCard"
                   placeholder="填写身份证号" required>
            <div class="invalid-feedback">请填身份证号</div>
        </div>
    </div>

    <div class="form-group row">
        <label for="phone" class="col-sm-2 col-form-label">手机</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.phone}" name="phone" class="form-control"
                   id="phone"
                   placeholder="填写手机" required>
            <div class="invalid-feedback">请填手机</div>
        </div>
    </div>

    <div class="form-group row">
        <label for="nickName" class="col-sm-2 col-form-label">昵称</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teaching?.nickName}" name="nickName" class="form-control"
                   id="nickName"
                   placeholder="填写昵称" required>
            <div class="invalid-feedback">请填昵称</div>
        </div>
    </div>

    <div class="form-group col-xs-12">
        <label class="control-label">参课类型:</label>
        <div class="ml-3">
            <div class="icheck-primary icheck-inline">
                <input type="radio" id="top_on" name="ttype" value="2" th:field="*{teaching.ttype}"/>
                <label for="top_on">新人</label>
            </div>
            <div class="icheck-primary icheck-inline">
                <input type="radio" id="top_off" name="ttype" value="1" th:field="*{teaching.ttype}"/>
                <label for="top_off">复训</label>
            </div>
        </div>
    </div>



</form>